

public class Main
{
    public static void main(String[] args)
    {
        E a=new E("zhengyubo",10000,1001);
        M b=new M("zheng",20000,1002);
        System.out.println(a.getNname()+" "+a.getSalary()+" "+a.getID());
        System.out.println(b.getNname()+" "+b.getSalary()+" "+b.getID());
    }
}

class M extends E
{
   public M(String name, double salary, int ID)
   {
       super(name, salary, ID);
   }
}


class E
{
    private String name;
    private double salary;
    private int ID;
    public String getNname()
    {
        return name;
    }
    public int getID()
    {
        return ID;
    }
    public double getSalary()
    {
        return salary;
    }
    public E(String name,double salary,int ID)
    {
        this.name=name;
        this.ID=ID;
        this.salary=salary;
    }
}
